﻿{extends file="../home.html"}

{block name="title"}{$head_title}{/block}
    
{block name="css"}
<link rel="stylesheet" href="__PUBLIC__/Css/front/order.css">
{/block}

{block name="content"}
<!--s主内容-->
<section class="content-wrapper">
  <div class="content-container container">
    <!-- s面包屑导航 -->
    {include file="../breadcrum_nav.html"}
    <!-- e面包屑导航 -->
    <!-- s分类 -->
    <div class="col-left">
    {include file="../common_personal_nav.html"}
    </div>  
    <!-- e分类 -->
    <!-- s主内容 -->
    <div class="col-main">
        {include file="../common_personal_header.html"}
        <div class="user-main">
            <!-- s我的订单 -->
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th>我的订单</th>
                    </tr>
                </thead>
                {if !$order_list}
                <thead>
                    <tr>
                        <th style="text-align:center;font-weight:normal;">暂无订单</th>
                    </tr>
                </thead>
                {/if}
                {if $order_list}
                 <thead class="order-head">
                    <tr>
                        <th>订单号</th>
                        <th>收货人</th>
                        <th>付款方式</th>
                        <th>订单总金额</th>
                        <th>实付订单金额</th>
                        <th>订单状态</th>
                        <th>支付状态</th>
                        <th>下单时间</th>
                        <!-- <th>包裹数</th> -->
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody class="order-tbody">
               {foreach from=$order_list item=order}
                  <tr>
                    <td><a href="{$order_detail_link}{$order.order_id}">{$order.order_sn}</a></td>
                    <td>{$order.consignee}</td>
                    <td>{if $order.order_status == OrderModel::PRE_PAY}--{else}{$order.payway}{/if}</td>
                    <td>{$order.total_amount}</td>
                    <td>{$order.pay_amount}</td>
                    <td>{$order.order_status_name}</td>
                    <td>{if $order.order_status == OrderModel::PRE_PAY}未支付{else}已支付{/if}</td>
                    <td>{$order.addtime|date_format:"%Y-%m-%d %H:%M:%S"}</td>
                    <!-- <td>2</td> -->
                    <td class="order-btn">
                      {if $order.order_status == OrderModel::PRE_PAY}
                        <a href="{$pay_order_link}{$order.order_id}">支付</a>
                      {else}
                        <a href="{$refund_apply_link}{$order.order_id}">申请退货</a>
                        <a href="{$order_refund_detail_link}{$order.order_id}">查看退货</a>
                      {/if}
                    </td>
                  </tr>
                {/foreach}                  
                </tbody>
                {/if}
              </table>
              <!-- 分页 -->
              <div class="pagination">
                <ul>
                  {$show}
                </ul>
              </div>
              <!-- e我的订单 -->
        </div>
    </div>
    <div class="clearfix"></div>
    <!-- e主内容 -->
  </div>
</section>
<!--e主内容-->
{/block}

{block name="js"}
{/block}
